package com.atguigu.gulimail.member.service;

import com.atguigu.gulimail.member.exception.PhoneExistException;
import com.atguigu.gulimail.member.exception.UserNameExistException;
import com.atguigu.gulimail.member.vo.LoginVo;
import com.atguigu.gulimail.member.vo.RegistVo;
import com.atguigu.gulimail.member.vo.UserVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author songshaoqiu
 * @email songshaoqiu@gmail.com
 * @date 2022-01-07 17:00:47
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(RegistVo registVo);

    void userNameExist(String userName) throws UserNameExistException;

    void phoneExist(String phone) throws PhoneExistException;

    MemberEntity login(LoginVo loginVo);

    MemberEntity authlogin(UserVo userVo);

}

